home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / profile / nsISessionRoaming.h < prev   
C/C++ Source or Header  |  2006-05-08  |  3KB  |  128 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsISessionRoaming.idl
  3.  */
  4.  
  5. #ifndef __gen_nsISessionRoaming_h__
  6. #define __gen_nsISessionRoaming_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. #ifndef __gen_nsIFile_h__
  14. #include "nsIFile.h"
  15. #endif
  16.  
  17. /* For IDL files that don't want to include root IDL files. */
  18. #ifndef NS_NO_VTABLE
  19. #define NS_NO_VTABLE
  20. #endif
  21.  
  22. /* starting interface:    nsISessionRoaming */
  23. #define NS_ISESSIONROAMING_IID_STR "ab62465c-494c-446e-b671-930bb98a7bc4"
  24.  
  25. #define NS_ISESSIONROAMING_IID \
  26.   {0xab62465c, 0x494c, 0x446e, \
  27.     { 0xb6, 0x71, 0x93, 0x0b, 0xb9, 0x8a, 0x7b, 0xc4 }}
  28.  
  29. /**
  30.  * nsISessionRoaming
  31.  *
  32.  * Implementation should be a service.
  33.  *
  34.  * see extensions/sraoming/README.txt
  35.  * 
  36.  * @status EXPERIMENTAL
  37.  * @version 1.0
  38.  */
  39. class NS_NO_VTABLE nsISessionRoaming : public nsISupports {
  40.  public: 
  41.  
  42.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISESSIONROAMING_IID)
  43.  
  44.   /* void BeginSession (); */
  45.   NS_IMETHOD BeginSession(void) = 0;
  46.  
  47.   /* void EndSession (); */
  48.   NS_IMETHOD EndSession(void) = 0;
  49.  
  50.   /* boolean isRoaming (); */
  51.   NS_IMETHOD IsRoaming(PRBool *_retval) = 0;
  52.  
  53. };
  54.  
  55. /* Use this macro when declaring classes that implement this interface. */
  56. #define NS_DECL_NSISESSIONROAMING \
  57.   NS_IMETHOD BeginSession(void); \
  58.   NS_IMETHOD EndSession(void); \
  59.   NS_IMETHOD IsRoaming(PRBool *_retval); 
  60.  
  61. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  62. #define NS_FORWARD_NSISESSIONROAMING(_to) \
  63.   NS_IMETHOD BeginSession(void) { return _to BeginSession(); } \
  64.   NS_IMETHOD EndSession(void) { return _to EndSession(); } \
  65.   NS_IMETHOD IsRoaming(PRBool *_retval) { return _to IsRoaming(_retval); } 
  66.  
  67. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  68. #define NS_FORWARD_SAFE_NSISESSIONROAMING(_to) \
  69.   NS_IMETHOD BeginSession(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->BeginSession(); } \
  70.   NS_IMETHOD EndSession(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->EndSession(); } \
  71.   NS_IMETHOD IsRoaming(PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsRoaming(_retval); } 
  72.  
  73. #if 0
  74. /* Use the code below as a template for the implementation class for this interface. */
  75.  
  76. /* Header file */
  77. class nsSessionRoaming : public nsISessionRoaming
  78. {
  79. public:
  80.   NS_DECL_ISUPPORTS
  81.   NS_DECL_NSISESSIONROAMING
  82.  
  83.   nsSessionRoaming();
  84.  
  85. private:
  86.   ~nsSessionRoaming();
  87.  
  88. protected:
  89.   /* additional members */
  90. };
  91.  
  92. /* Implementation file */
  93. NS_IMPL_ISUPPORTS1(nsSessionRoaming, nsISessionRoaming)
  94.  
  95. nsSessionRoaming::nsSessionRoaming()
  96. {
  97.   /* member initializers and constructor code */
  98. }
  99.  
  100. nsSessionRoaming::~nsSessionRoaming()
  101. {
  102.   /* destructor code */
  103. }
  104.  
  105. /* void BeginSession (); */
  106. NS_IMETHODIMP nsSessionRoaming::BeginSession()
  107. {
  108.     return NS_ERROR_NOT_IMPLEMENTED;
  109. }
  110.  
  111. /* void EndSession (); */
  112. NS_IMETHODIMP nsSessionRoaming::EndSession()
  113. {
  114.     return NS_ERROR_NOT_IMPLEMENTED;
  115. }
  116.  
  117. /* boolean isRoaming (); */
  118. NS_IMETHODIMP nsSessionRoaming::IsRoaming(PRBool *_retval)
  119. {
  120.     return NS_ERROR_NOT_IMPLEMENTED;
  121. }
  122.  
  123. /* End of implementation class template. */
  124. #endif
  125.  
  126.  
  127. #endif /* __gen_nsISessionRoaming_h__ */
  128.